import request from '@/service'
/**
 * 获取商品分类数据列表
 */

export const getRolesList = params => {
  return request({
    method: 'GET',
    url: 'categories',
    params
  })
}

/**
 * 添加分类
 */

export const getCategories = params => {
  return request({
    method: 'GET',
    url: 'categories',
    cat_pid: 2,
    cat_name: 0
  })
}
